package com.zuihai.app.mvp.contract;

import com.jess.arms.mvp.IModel;
import com.jess.arms.mvp.IView;
import com.zuihai.app.mvp.model.entity.BaseJson;
import com.zuihai.app.mvp.model.entity.FindItem;
import com.zuihai.app.mvp.ui.adapter.FindRecyclerAdapter;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/16 0016.
 */

public interface DetailShoppingContract {
    //对于经常使用的关于UI的方法可以定义到BaseView中,如显示隐藏进度条,和显示文字消息
    interface View extends IView {
        void bindRecycler(FindRecyclerAdapter adapter);
    }

    //Model层定义接口,外部只需关心model返回的数据,无需关心内部细节,及是否使用缓存
    interface Model extends IModel {
        Observable<BaseJson<FindItem>> requestShopping(String id, String userId, int page);
    }
}